package com.meiyue.config.aspect;

import com.meiyue.library.utils.MsgUtils;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * YuedaoApi
 * com.meiyue.config.aspect
 * Created by Chris Chen
 * 2017/9/18
 * Explain:
 */
//@Aspect
//@Component
public class LogAspect {
    //private final static Logger logger = LoggerFactory.getLogger(LogAspect.class);

    @Pointcut("@annotation(org.springframework.web.bind.annotation.RequestMapping)")
    public void log() {
    }

    @Before(value = "log()")
    public void doBefore() {
        MsgUtils.println("AOP==>doBefore");
    }
}
